package com.xmtlxx.wms.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * 盘点计划视图对象 t_inventory_plan
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
@Data
@ApiModel("盘点计划视图对象")
@ExcelIgnoreUnannotated
public class InventoryPlanVo {

    private static final long serialVersionUID = 1L;

    /**
     * 盘点id
     */
    @ExcelProperty(value = "盘点id")
    @ApiModelProperty("盘点id")
    private String id;

    /**
     * 单号
     */
    @ExcelProperty(value = "单号")
    @ApiModelProperty("单号")
    private String inventoryNo;

    /**
     * 仓库id
     */
    @ExcelProperty(value = "仓库id")
    @ApiModelProperty("仓库id")
    private String storeId;

    /**
     * 盘点人
     */
    @ExcelProperty(value = "盘点人")
    @ApiModelProperty("盘点人")
    private String inventoryUser;

    /**
     * 经办人
     */
    @ExcelProperty(value = "经办人")
    @ApiModelProperty("经办人")
    private String operator;

    /**
     * 经办时间
     */
    @ExcelProperty(value = "经办时间")
    @ApiModelProperty("经办时间")
    private Date operateTime;

    /**
     * 审核人
     */
    @ExcelProperty(value = "审核人")
    @ApiModelProperty("审核人")
    private String checker;

    /**
     * 审核状态
     */
    @ExcelProperty(value = "审核状态")
    @ApiModelProperty("审核状态")
    private String checkStatus;

    /**
     * 审核时间
     */
    @ExcelProperty(value = "审核时间")
    @ApiModelProperty("审核时间")
    private Date checkTime;

    /**
     * 审核备注
     */
    @ExcelProperty(value = "审核备注")
    @ApiModelProperty("审核备注")
    private String checkMemo;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "wms_inventory_status")
    @ApiModelProperty("状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty("备注")
    private String remark;

    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    @ApiModelProperty("部门id")
    private Long deptId;

    /**
     * 账面数量
     */
    @ExcelProperty(value = "账面数量")
    @ApiModelProperty("账面数量")
    private Long books;

    /**
     * 盘点数量
     */
    @ExcelProperty(value = "盘点数量")
    @ApiModelProperty("盘点数量")
    private Long nums;

    /**
     * 已盘标签数
     */
    private Integer rfidNums;

    /**
     * 盘点结果
     */
    @ExcelProperty(value = "盘点结果")
    @ApiModelProperty("盘点结果")
    private Long results;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    @ApiModelProperty("图片")
    private String pics;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    @ApiModelProperty("创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ExcelProperty(value = "更新人")
    @ApiModelProperty("更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    /**
     * 删除标识
     */
    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    @ApiModelProperty("删除标识")
    private String delFlag;

    /**
     * 计划开始时间
     */
    @ApiModelProperty("计划开始时间")
    private Date planTime;


    /**
     * 监盘人
     */
    @ApiModelProperty("监盘人")
    private Long watcherId;

    /**
     * 派单人
     */
    @ApiModelProperty("派单人")
    private Long dispatcherId;

    /**
     * 类型 0-计划 1-结果
     */
    @ApiModelProperty("类型 0-计划 1-结果")
    private String type;

    /**
     * 关联计划id
     */
    @ApiModelProperty("关联计划id")
    private String rid;

    private List<InventoryDtlVo> items;

    @ExcelProperty(value = "仓库")
    private String storeName;

    @ExcelProperty(value = "机构")
    private String deptName;

    private String nickName;

    private String areaId;
    private String cabinetGroupId;
    private String cabinetId;
    private String region;
    private List<String> regions;
    /**
     * 层数
     */
    private String floors;
    private String locators;
    private String[] locatorIds;

    private String areaName;
    private String groupName;
    private String cabinetName;
    private List<String> locatorName;

    private String watcher;
    private String dispatcher;

    private String inventoryType;
}
